# with open会自动调用close方法，并且withopen能同时操作多个文件
with open('./Test.txt') as f1,open('./Test2.txt','a+') as f2:
    # 从Test.txt中读取
    f1_list = f1.readlines()
    print(f1_list)
    # for i in range(len(f1_list)):
    #     f1_list[i] = f1_list[i].strip() 
    print(f1_list)
    # 写进Test2.txt
    f2.writelines(f1_list)
